<?php

namespace app\validate;

use share\validate\SceneValidate;

class UserPassValidate extends SceneValidate{
    protected $rule = [    
        'userId' => 'length:2,64',
        'password' => 'length:1,64',  
        'key' => 'length:2,64',
        'smData' => 'length:1,2500',  
    ];    

    protected $scene = [
        'setTmp' => ['key','smData'],
        'reset' => ['key','smData'],
        'userPass' => ['userId','password'],
    ];
}